
package com.benimetum.items;

import com.benimetum.managers.LoginManager;
import java.util.Date;

/**
 *
 * @author Ethem Cem Ozkan
 * @email ethemcem.ozkan@gmail.com
 * No 07110604
 */
public class Reply
{
    private String id;
    private String text;
    private String header;
    private String topicsId;
    private Date date;
    private Person user;

    public Reply(String id, String text, String header, String topicsId, Date date, Person user) {
	  this.id = id;
	  this.text = text;
	  this.header = header;
	  this.topicsId = topicsId;
	  this.date = date;
	  this.user = user;
    }

    public String getHeader() {
	  return header;
    }


    public Date getDate() {
	  return date;
    }

    public Person getUser() {
	  return user;
    }

    public String getTopicsId() {
	  return topicsId;
    }
    
    public String getId() {
	  return id;
    }

    public String getText() {
	  return text;
    }

    public void setDate(Date date) {
	  this.date = date;
    }

    public void setUser(Person user) {
	  this.user = user;
    }

    public void setTopicsId(String topicsId) {
	  this.topicsId = topicsId;
    }

    public void setId(String id) {
	  this.id = id;
    }

    public void setHeader(String header) {
	  this.header = header;
    }

    public void setText(String text) {
	  this.text = text;
    }
    
    public boolean same(){
	  return user.getId().equals(LoginManager.getUser().getId());
    }
}
